package com.zx.rbac.ums.controller;

import java.util.Arrays;
import java.util.Map;

import com.zx.rbac.common.api.Result;
import com.zx.rbac.ums.model.UmsPermissionEntity;
import com.zx.rbac.ums.service.UmsPermissionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;



/**
 * 后台用户权限表
 *
 * @author Qin
 * @email xiao_zhi_2020@163.com
 * @date 2021-08-06 22:07:13
 */
@RestController
@RequestMapping("rbacApi/umspermission")
public class UmsPermissionController {
    @Autowired
    private UmsPermissionService umsPermissionService;

    /**
     * 列表
     */
    @RequestMapping("/list")
    //@RequiresPermissions("rbacApi:umspermission:list")
    public Result list(@RequestParam Map<String, Object> params){
        return Result.success();
    }


    /**
     * 信息
     */
    @RequestMapping("/info/{id}")
    //@RequiresPermissions("rbacApi:umspermission:info")
    public Result info(@PathVariable("id") Long id){
        return Result.success();
    }

    /**
     * 保存
     */
    @RequestMapping("/save")
    //@RequiresPermissions("rbacApi:umspermission:save")
    public Result save(@RequestBody UmsPermissionEntity umsPermission){
        return Result.success();
    }

    /**
     * 修改
     */
    @RequestMapping("/update")
    //@RequiresPermissions("rbacApi:umspermission:update")
    public Result update(@RequestBody UmsPermissionEntity umsPermission){
        return Result.success();
    }

    /**
     * 删除
     */
    @RequestMapping("/delete")
    //@RequiresPermissions("rbacApi:umspermission:delete")
    public Result delete(@RequestBody Long[] ids){
        return Result.success();
    }

}
